<?php
/**
 * Order
 * Created by Veyron
 * motto:现在的拼搏 为了更好的明天
 * day:  2020/3/28
 * Time: 17:07
 */

namespace app\api\command;


use think\console\Command;
use think\console\Input;
use think\console\Output;

class Order extends Command
{
    protected function configure()
    {
        //指令配置
        $this->setName('order')
            ->setDescription('the second command');
    }

    protected function execute(Input $input, Output $output)
    {
       $obj = new \app\common\business\Order();
        while (true){
            $obj->checkOrderStatus();
            sleep(1);
        }
        $output->writeln('second111');
    }
}
